import requests
class IhrmLoginApi:
    def login(self,resq_data):


        resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                            json=resq_data)
        return resp

if __name__ == '__main__':
    ihrm = IhrmLoginApi()
    resq_data = {"mobile": "13800000002", "password": "123456"}
    resp1 = ihrm.login(resq_data)
    print("登陆成功",resp1.json())